//
//  StrategySectionsParser.m
//  ITrip
//
//  Created by dllo on 15/5/30.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "StrategySectionsParser.h"

@implementation StrategySectionsParser

- (void)dealloc
{
    [self.strategy_description release];
    [self.strategy_third_title release];
    [super dealloc];
}

- (instancetype)init:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        self.photos = [NSMutableArray array];
        self.strategy_description = dic[@"description"];
        self.strategy_third_id = [dic[@"id"]integerValue];
        self.strategy_third_title = dic[@"title"];
        
        NSArray *array = dic[@"photos"];
        for (NSDictionary *dic in array) {
            StrategyPhotosParser *parser = [[StrategyPhotosParser alloc]init:dic];
            [self.photos addObject:parser];
        }
    }
    return self;
}

- (void)setValue:(id)value forKey:(NSString *)key
{
    if ([key isEqualToString:@""]) {
        
    }
}

- (id)valueForUndefinedKey:(NSString *)key
{
    return nil;
}


@end
